Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary initializations when setting Tx or Rx mode. #20

Closed
wants to merge 2 commits into from

Conversation

fleibede
Copy link

The same initialization of settings and pins is done during Init(). The change causes
an significant speed improvement when switching between Tx and Rx modes rapidly.
According to figure 13 (state diagram) in C1101 manual, it is allowed to go
directly to Tx and Rx from either Idle, Tx or Rx mode.

SetRx/Tx(float mhz) functions have not been tested, as I don't have any equipment that works on frequencies different than 433.92MHz.

The same initialization of settings and pins is done during Init(). The change causes
an significant speed improvement when switching between Tx and Rx modes rapidly.
According to figure 13 (state diagram) in C1101 manual, it is allowed to go
directly to Tx and Rx from either Idle, Tx or Rx mode.
@LSatan
Copy link
Owner

LSatan commented Jan 16, 2020

Hi there, Thank you for the suggestion for improvement. I have tested everything and will take it into account in the next update. I noticed with arduino nano that with this method the sck pin stays high (onboard led lights up permanently). so in the end I still have digitalWrite (SCK_PIN, LOW); added.

@fleibede
Copy link
Author

fleibede commented Aug 2, 2020

MR can be closed as changes were implemented in SmartRC-CC1101-Driver-Lib_V2.3 release.

@fleibede fleibede closed this Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants